package com.youju.parking.controller;


import com.jiazhong.youju.commons.utils.JSONResult;
import com.youju.parking.service.ParkingService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/parking")
public class ParkingController {
    @Resource
    private ParkingService parkingService;

    @GetMapping
    public JSONResult find(){
        return parkingService.find();

    }

}
